import service from '@/utils/request'

const OfficeApi = {
    addOffice: function (data) {
        return service.post('office', data);
    },
    editOffice: function (data) {
        return service.put('office', data);
    },
    deleteOffice: function (data) {
        return service.delete('office', {params: data });
    },
    getOffice: function (data) {
        return service.get('office',{ params: data });
    },
    getOfficeList: function (data) {
        return service.get('offices',{ params: data });
    },
    getOfficeNames: function (data) {
        // 获取id name 列表
        return service.get('office/names',{ params: data });
    },
    createHsHb: function (data) {
      // 创建核酸海报
      return service.get('office/createHsHb',{ params: data });
    }
}

export default OfficeApi
